/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;


public class C5 {
    public static void main(String[] args) {
        C5 c = new C5();
        //c.show(6); // 1 2 3 4 5 6
        //c.print(6);// 6 5 4 3 2 1
        c.println(6);//6 5 4 3 2 1 0

        //c.m1();
    }

    public void m1() {
        System.out.println("hello");
        m1();
    }

    public void show(int n) {
        if (n >= 1) {
            show(n - 1);
            System.out.println(n);
        }
    }

    public void println(int n) {
        if (n >= 1) {
            println(n - 1);
        }
        System.out.println(n);
    }

    public void print(int n) {
        if (n >= 1) {
            System.out.println(n);
            print(n - 1);
        }
    }
}
